home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 January / PCWorld_2002-01_cd.bin / Novinky / Becher / 1. Zlaty Kalich / ZlatyKalich.exe / scripts / DefineButton2_1288 / BUTTONCONDACTION on(release).as next >
Text File  |  2001-11-12  |  777b  |  38 lines

  1. on(release){
  2.    if(_root.poz == "b")
  3.    {
  4.       _root.pepa.gotoAndPlay("bc");
  5.    }
  6.    else if(_root.poz == "d")
  7.    {
  8.       _root.pepa.gotoAndPlay("dc");
  9.    }
  10.    else if(_root.poz == "c")
  11.    {
  12.       if(_root.draglej == 0 || _root.draglej == 25)
  13.       {
  14.          _root.stopdragall();
  15.          if(_root.izvuk == 1)
  16.          {
  17.             _root.loadzvuk.gotoAndPlay("totalk_talk");
  18.          }
  19.          else
  20.          {
  21.             _root.totalk.gotoAndPlay("talk");
  22.          }
  23.       }
  24.       else
  25.       {
  26.          _root.stopdragall();
  27.          if(_root.izvuk == 1)
  28.          {
  29.             _root.loadzvuk.gotoAndPlay("totalk_tonechci");
  30.          }
  31.          else
  32.          {
  33.             _root.totalk.gotoAndPlay("tonechci");
  34.          }
  35.       }
  36.    }
  37. }
  38.